package com.xpffly.design.handler.service.impl;

import com.xpffly.design.handler.service.Handler;
import com.xpffly.design.handler.service.Women;

/**
 * @Author: xpengfei
 * @Date: 2021/4/7 21:20
 * @Description：
 */
public class Son extends Handler {
    /**
     * 构造方法中设置儿子能够处理的请求级别
     */
    public Son() {
        super(Handler.SON_LEVEL_REQUEST);
    }

    @Override
    public void response(Women women) {
        System.out.println("--------母亲向儿子请示---------");
        System.out.println(women.getRequest());
        System.out.println("--------儿子答复：同意---------");
    }
}
